package com.villaday.idf.adapter3;

import android.content.Context;
import android.text.Html;
import android.widget.TextView;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.model3.HotelDetailsEntity;

public class InstallationNearAdapter extends AbsRecyclerViewAdapter<HotelDetailsEntity.BodyBean.AroundsBean> {


    public InstallationNearAdapter(Context context) {
        super(context, com.villaday.idf.R.layout.recycle_installation_near);
    }

    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, HotelDetailsEntity.BodyBean.AroundsBean d, int position) {

        TextView tv=(TextView)holder.getView(R.id.tv_in);
        String htmlStr = "距离" + d.getAroundName() + "<font color='#FEC24A'>" + d.getAroundDist() + "</font>km";
        tv.setText(Html.fromHtml(htmlStr));
    }
}